package com.example.zhangxin.zyfypt_124zx.service;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by zhangxin on 2017/5/26.
 */

public interface FocusService {
//    //关注
//    @GET("api.php/create/mod/{mod}")
//    Call<String> focus(@Path("mod") String mod, @Query("idolid") int idolid, @Header("SessionID") String sessionID);
//    //是否已关注
//    @GET("api.php/exists/mod/{mod}")
//    Call<String> exists(@Path("mod") String mod, @Query("idolid") int idolid, @Header("SessionID") String sessionID);
//    //取消关注
//    @GET("api.php/delete/mod/{mod}")
//    Call<String> unfocus(@Path("mod") String mod, @Query("idolid") int idolid, @Header("SessionID") String sessionID);
    @GET("api.php/exists/mod/{mod}")
    Call<String> exists(@Path("mod") String mod, @Query("userid") int userid, @Header("SessionID") String sessionID);

    @GET("api.php/create/mod/{mod}")
    Call<String> focus(@Query("mod") String mod, @Query("userid") int userid, @Header("SessionID") String SessionID);

    @GET("api.php/delete/mod/{mod}")
    Call<String> unfocus(@Path("mod") String mod, @Query("userid") int userid, @Header("SessionID") String sessionID);

}


